package com.tyqx.service.Impl;

import com.tyqx.bean.model.EthPoolInfo;
import com.tyqx.bean.model.StopBlockInterval;
import com.tyqx.bean.model.UserHashrateInfo;
import com.tyqx.mapper.EthPoolInfoMapper;
import com.tyqx.mapper.UserHashrateInfoMapper;
import com.tyqx.service.EthPoolInfoService;
import com.tyqx.service.UserHashrateInfoService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Date;
import java.util.List;

@Service("userHashrateInfoService")
public class UserHashrateInfoServiceImpl implements UserHashrateInfoService {

    @Resource
    private UserHashrateInfoMapper userHashrateInfoMapper;

    @Override
    public UserHashrateInfo selectUserHashrateInfoByUserCode(String userCode) {
        return userHashrateInfoMapper.selectUserHashrateInfoByUserCode(userCode);
    }

    @Override
    public List<UserHashrateInfo> selectUserHashrateInfos() {
        return userHashrateInfoMapper.selectUserHashrateInfos();
    }
}
